package com.talos.ums.controller.admin.childuser.vo;

import com.talos.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.talos.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 子账号添加记录表分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UmsChildUserPageReqVO extends PageParam {

    @Schema(description = "账号id", example = "6313")
    private Long userId;

    @Schema(description = "货主id", example = "31492")
    private Long companyId;

    @Schema(description = "货主编码")
    private String companyCode;

    @Schema(description = "货主名称", example = "张三")
    private String companyName;

    @Schema(description = "账号昵称", example = "王五")
    private String nickname;

    @Schema(description = "登录账号", example = "芋艿")
    private String username;

    @Schema(description = "账号类型", example = "2")
    private String type;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "创建人id", example = "22428")
    private Long creatorId;

    @Schema(description = "创建人编码")
    private String creatorCode;

    @Schema(description = "创建人名称", example = "赵六")
    private String creatorName;

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] modifyTime;

    @Schema(description = "更新人id", example = "30219")
    private Long modifierId;

    @Schema(description = "更新人编码")
    private String modifierCode;

    @Schema(description = "更新人名称", example = "王五")
    private String modifierName;

    @Schema(description = "租户id", example = "1147")
    private Long tenantId;

}
